package cn.tm.ms.nerver.ft.type;

/**
 * 容错策略类型
 * 
 * @author lry
 */
public enum FtType {

	FAILOVER("FAILOVER","故障转移"),

	FAILFAST("FAILFAST","快速失败"),

	FAILSAFE("FAILSAFE","故障保护"),

	FAILCACHE("FAILCACHE","失败缓存"),

	FAILBACK("FAILBACK","失败恢复"),

	FORKING("FORKING","并行策略"),

	BROADCAST("BROADCAST","广播策略");
	
	String code;
	String msg;
	
	FtType(String code,String msg) {
		this.code=code;
		this.msg=msg;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

}
